package com.picshare.event;

import com.picshare.model.FileItem;

/**
 * 照片上传事件
 * 当有新照片上传时发布此事件，通知SSE监听器
 */
public class PhotoUploadedEvent {
    
    private final FileItem photo;
    private final long timestamp;
    
    public PhotoUploadedEvent(FileItem photo) {
        this.photo = photo;
        this.timestamp = System.currentTimeMillis();
    }
    
    public FileItem getPhoto() {
        return photo;
    }
    
    public long getTimestamp() {
        return timestamp;
    }
}